from pydantic_settings import BaseSettings
from typing import Optional

class TencentCloudSettings(BaseSettings):
    """腾讯云配置"""
    
    # 腾讯云认证信息
    secret_id: str
    secret_key: str
    region: str = "ap-beijing"
    
    # 图像识别配置
    tiia_endpoint: str = "tiia.tencentcloudapi.com"
    
    # 向量数据库配置
    vector_db_url: Optional[str] = None
    vector_db_username: Optional[str] = None
    vector_db_password: Optional[str] = None
    
    # 对象存储配置
    cos_bucket: Optional[str] = None
    cos_region: str = "ap-beijing"
    
    class Config:
        env_file = ".env"
        env_prefix = "TENCENT_"

# 创建腾讯云设置实例
tencent_settings = TencentCloudSettings()